<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width:100px;
            height: 100px;
            background: red;
        }
    </style>
    <script>
        function f1(str1,str2){
            alert(str1+str2)
        }
    </script>
</head>
<body>
    <div onmouseover="f1()">
        div
    </div>
    <button ondblclick="f1('11','22')"">点击</button>
    
</body>
</html>